package com.river.backend;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * Created by huanghe on 2017/9/22.
 */
@EnableDiscoveryClient
@SpringBootApplication
public class MainApplication {


    protected final static Logger logger = LoggerFactory.getLogger(MainApplication.class);


    public static void main(String[] args) throws Exception {

        new SpringApplicationBuilder(
                MainApplication.class)
                .web(true).run(args);
        logger.info("MainApplication is success!");
    }


}
